package com.yzd.learnjava.annotaions;

import java.util.Collection;
import java.util.Collections;
import java.util.Set;

import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import com.sun.mirror.apt.AnnotationProcessorFactory;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;

public class InterfaceExtractprProcessorFactory implements AnnotationProcessorFactory {
	
	
	public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds, 
			AnnotationProcessorEnvironment env) {
		return new InterfaceExtractorProcessor(env);
	}
	
	public Collection<String> supportedAnnotationTypes(){
		return Collections.singleton("annotations.ExtractInterface");
	}
	
	public Collection<String> supportedOptions(){
		return Collections.emptySet();
	}

//	public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> arg0,
//			AnnotationProcessorEnvironment arg1) {
//		// TODO Auto-generated method stub
//		return null;
//	}

}
